package routers

import (
	"github.com/gin-gonic/gin"
	"wx-api/dsp-api/handlers"
	"wx-api/dsp-api/services/se_dsp_adv_plan"
)

func Route_DspAdvPlanList(router *gin.RouterGroup) {
	obj := router.Group("/dsp_adv_plan")
	obj.GET("/list", func(c *gin.Context) {
		se_dsp_adv_plan.List(handlers.NewBaseController(c))
	})
	obj.POST("/add", func(c *gin.Context) {
		se_dsp_adv_plan.Add(handlers.NewBaseController(c))
	})
	obj.POST("/edit", func(c *gin.Context) {
		se_dsp_adv_plan.Edit(handlers.NewBaseController(c))
	})
	obj.GET("/info", func(c *gin.Context) {
		se_dsp_adv_plan.Info(handlers.NewBaseController(c))
	})
	obj.GET("/flag", func(c *gin.Context) {
		se_dsp_adv_plan.Flag(handlers.NewBaseController(c))
	})
	obj.GET("/stats", func(c *gin.Context) {
		se_dsp_adv_plan.Stats(handlers.NewBaseController(c))
	})
	obj.GET("/all", func(c *gin.Context) {
		se_dsp_adv_plan.All(handlers.NewBaseController(c))
	})
}
